package com.hotel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.classgraph.json.Id;
import lombok.Data;


import java.util.Date;

@Data
@TableName("tb_login_log")
public class LoginLog {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String username;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh",timezone ="GMT+8")
    private Date loginTime;

    private String location;

    private String ip;

    private String userSystem;

    private String userBrowser;

}
